//
//  SettingCell.m
//  Hello
//
//  Created by Detailscool on 16/3/17.
//  Copyright © 2016年 Detailscool. All rights reserved.
//

#import "SettingCell.h"
#import "SettingModel.h"

@interface SettingCell ()

@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;


@end

@implementation SettingCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+ (instancetype)settingCellWithTableView:(UITableView *)tableView {
    
    SettingCell * cell = [tableView dequeueReusableCellWithIdentifier:@"base"];

    return cell;
}

- (void)setModel:(SettingModel *)model {
    
    _model = model;
    
    self.titleLabel.text = model.title;
    self.iconView.image = [UIImage imageNamed:model.imageName];
    
}

@end
